const webpack = require('webpack')

module.exports = {
  devServer: {
    // public: "0.0.0.0"
    // proxy: 'https://www.yupengsir.com/'
    proxy: 'http://localhost:8080'
    /*
     * proxy: {
     *   '/': {
     *     target: 'localhost:8080',
     *     ws: true,
     *     changeOrigin: true
     *   }
     * }
     */
  },
  configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        $: 'jquery',
        jQuery: 'jquery',
        'window.jQuery': 'jquery'
      })
    ]
  }
}
